export default is

function is (type, value) {
  const captialType =
    type.substr(0, 1).toUpperCase() + type.substr(1).toLowerCase()
  return Object.prototype.toString.call(value) === `[object ${captialType}]`
}
